import request from '@/utils/http'

//轮播图

// 新增
export const addBannerAPI = (data) => {
  return request({
    url: 'admin/banner',
    method: 'POST',
    data
  });
};

// 查询
export const getBannerAPI = () => {
  return request({
    url: 'admin/banner',
    method: 'GET'
  });
};

// 删除
export const deleBannerAPI = (id) => {
  return request({
    url: 'admin/banner',
    method: 'DELETE',
    params: {
      id
    }
  });
};

// 修改
export const editBannerAPI = (data) => {
  return request({
    url: 'admin/banner',
    method: 'PUT',
    data
  });
};